# user/urls.py
from django.urls import path, include

from rest_framework import routers
from rest_framework.routers import DefaultRouter

from crawler.views import CrawlerDataView, CityAnalyseView, GetCrawlerProfileListView, \
	GetCrawlerProfileByKeyboardView, JobAreaAnalyseView, JobExperienceAnalyseView, \
	JobEducationAnalyseView

app_name = 'crawler'

urlpatterns = [
	path('crawler_data', CrawlerDataView.as_view(),name='crawler_data'),
	path('city_analyse_data', CityAnalyseView.as_view(),name='city_analyse_data'),
	path('job_area_analyse', JobAreaAnalyseView.as_view(),name='job_area_analyse'),
	path('job_experience_analyse', JobExperienceAnalyseView.as_view(),name='job_experience_analyse'),
	path('job_education_analyse', JobEducationAnalyseView.as_view(),name='job_education_analyse'),
]
router = routers.SimpleRouter()
router.register(r'get_crawler_profile', GetCrawlerProfileListView)
router.register(r'get_crawler_profile_keyboard', GetCrawlerProfileByKeyboardView)
urlpatterns += router.urls